# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libsailfishkeyprovider
pkgver=1.0.4
pkgrel=0
pkgdesc="Provides a class which can provide decoded keys to client applications"
url="https://git.sailfishos.org/mer-core/libsailfishkeyprovider"
arch="all"
license="LGPL-2.1-only"
depends_dev="qt5-qtbase-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev"
source="https://git.sailfishos.org/mer-core/libsailfishkeyprovider/-/archive/$pkgver/libsailfishkeyprovider-$pkgver.tar.gz"

build() {
	qmake-qt5
	make
}

package() {
	INSTALL_ROOT="$pkgdir" make install

	# Remove installed tests
	rm -r "$pkgdir"/opt
}

sha512sums="b08368f0f2e9b6a66b7cc9ac6910f80c5ee4cc120701dc663784b486c93b6d0c5dc74455779c78030fd7ff711a2d349042ac00f29a31f336dacd3441d939b742  libsailfishkeyprovider-1.0.4.tar.gz"
